<style>
	

</style>
<div class="info">
	<h2>Quản lý thành viên</h2>
    <div class="right_control">
    	<a href="<?php echo base_url().'admin/members/add';?>">Thêm thành viên</a>
        | <a href="#">Xóa tất cả</a>
    </div>	
    <table class="table_list" cellpadding="0" cellspacing="0">
        <tr class="tr">
        	<td width="34"><input type="checkbox" value="" name="check_item" id="check_item" /></td>
            <td width="34">STT</td>
            <td width="112">Hình ảnh</td>
            <td width="312" style="width:100px">Họ và tên</td>
            <td width="312">Thông tin cá nhân</td>
            <td width="76">URL</td>
            <td width="52" colspan="2">Action</td>
        </tr>
        <?php 
				$i=1;
			foreach($result as $row) :?>
        <tr>
        	<td class="td"><input type="checkbox" value="<?php echo $row->id;?>" name="check_item[<?php echo $row->id;?>]" id="check_item" /></td>
        	<td class="td"><?php echo $i++;?></td>
            <td class="td"><?php if(isset($row->avarta)) { ?>
            				<img src="<?php echo base_url();?><?php echo $row->avarta;?>" width="100" height="100" />
            				<?php } else { ?>
                            [Chưa có hình]
                            <?php } ?> </td>
            <td class="td">
            	<table width="200px" cellpadding="0" cellspacing="0" class="table_list_1">
                	<tr>	
                    	<td>Username: </td>  
                        <td><?php echo $row->username?></td>                      
                    </tr>
                    <tr>	
                    	<td>Họ và Tên: </td>    
                        <td><?php echo $row->fullname?></td>                     
                    </tr>
                </table>
            </td>
            <td class="td">
            	<table class="table_list_1" width="300px" cellpadding="0" cellspacing="0">
                	
                    <tr>	
                    	<td>Ngày sinh:</td>    
                        <td><?php echo $row->birthday;?></td>                     
                    </tr>
                    <tr>	
                    	<td>Địa chỉ:</td>    
                        <td><?php echo $row->address;?></td>                     
                    </tr>
                    <tr>	
                    	<td>Điện thoại:</td>    
                        <td><?php echo $row->phone;?></td>                     
                    </tr>
                     <tr>	
                    	<td>Email:</td>    
                        <td><?php echo $row->email;?></td>                     
                    </tr>
                    <tr>	
                    	<td>Y!M:</td>    
                        <td><?php echo $row->yahoo;?></td>                     
                    </tr>
                    <tr>	
                    	<td>Skype:</td>    
                        <td><?php echo $row->skype;?></td>                     
                    </tr>
                </table>
            </td>
            <td class="td">U<?php echo $row->id;?></td>
           <td class="td"><a href="<?php echo base_url().'admin/members/update_members/'.$row->id;?>" class="mau_den">Sửa</a></td>
           <td class="td"><a href="#" class="mau_den">Xóa</a></td>
           
        </tr>   
        <?php endforeach;?>     
	</table>
    <table>
    <tr>	
    <td>
            <a href="" style="padding:5px; font-weight: bold; color:#333">1</a>
            <a href="" style="padding:5px; font-weight: bold; color:#333">1</a>
            <a href="" style="padding:5px; font-weight: bold; color:#333">1</a>
            <a href="" style="padding:5px; font-weight: bold; color:#333">1</a>
    </td>
    <td>
    	<select style="width:50px">
        	<option value="5">5</option>
            <option value="5">5</option>
            <option value="5">5</option>
            <option value="5">5</option>
        </select>
    </td>
    </tr>
    </table>
</div>
